package com.happe.foodeasy.service.impl;

import com.happe.foodeasy.client.ImgClient;
import com.happe.foodeasy.dto.PositionImageDTO;
import com.happe.foodeasy.service.ImgService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.io.InputStream;
import java.util.List;

@Service("imgService")
public class ImgServiceImpl implements ImgService {
    @Resource
    private ImgClient imgClient;

    @Override
    public List<PositionImageDTO> selectTargetPositionImgInfo(Integer positionId) {
        return imgClient.selectTargetPositionImgInfo(positionId);
    }

    @Override
    public InputStream selectTargetPositionImg(Integer imageId) {
        return imgClient.selectTargetPositionImg(imageId);
    }
}
